package cn.wolfcode.luowowo.website.web.controller;


import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.Problem;
import cn.wolfcode.luowowo.article.service.IDestinationService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class PublicController {

    @Reference
    private IDestinationService destinationService;
    @RequestMapping("/y") //跳转增加页面
    public String add(Model model){
        //查询所有地区
        List<Destination> list = destinationService.list();
        model.addAttribute("dest",list);
        return "wenda/public";
    }



}
